import { axios } from '@/utils/request'

export function baseDataTypeList() {
  return axios({
    url: '/baseDataType/list',
    method: 'get'
  })
}

export function baseDataTypeAdd(body) {
  return axios({
    url: '/baseDataType/add',
    method: 'post',
    data: body
  })
}

export function baseDataTypeEdit(body) {
  return axios({
    url: '/baseDataType/edit',
    method: 'post',
    data: body
  })
}

export function baseDataTypeDelete(body) {
  return axios({
    url: '/baseDataType/delete',
    method: 'post',
    data: body
  })
}

export function exportExcel(body) {
  return axios({
    url: '/timeSpaceDataRecord/export/excel',
    method: 'post',
    data: body,
    responseType: 'blob'
  })
}
